package com.linkhub.oms.admin.modules.order.domain.param.orderproduct;

import com.linkhub.oms.admin.modules.order.domain.param.BaseSingleOrderParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: OrderLocalSkuUpdateParam
 * @Author: echo
 * @Date: 2024/4/5 09:53
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("OrderLocalSkuUpdateParam")
public class OrderLocalSkuUpdateParam extends BaseSingleOrderParam implements Serializable {


    @ApiModelProperty("localSkuId")
    @NotBlank(message = "{validation.order.localSkuId.notBlank}")
    private String localSkuId;

    @ApiModelProperty("shopProductId")
    private String shopProductId;

    @ApiModelProperty("currentQuantity")
    @NotNull(message = "{validation.order.currentQuantity.notNull}")
    @Range(min = 1, message = "{validation.order.currentQuantity.range}")
    private Integer currentQuantity;


}
